projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da6deda
)
* src/image.c (image_set_rotation): Do negation at compile-time.
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 17 Jun 2019 22:46:36 +0000
(15:46 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 17 Jun 2019 22:46:54 +0000
(15:46 -0700)
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index c08b898e7d8da959aeed5bc4151b7083f8dd8b3a..866323ba6e54409cb9f140d5e5741931bb846ec1 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-2151,8
+2151,8
@@
image_set_rotation (struct image *img, matrix3x3 tm)
matrix3x3_mult (rot, tmp, tmp2);
/* Translate back. */
- t[2][0] =
- (width * .5)
;
- t[2][1] =
- (height * .5)
;
+ t[2][0] =
width * -.5
;
+ t[2][1] =
height * -.5
;
matrix3x3_mult (t, tmp2, tm);
img->width = width;